<script setup lang="ts">
import { ref } from 'vue'

const currentTab = ref<number>(0)

import indexMe from './indexMe.vue'
import MyApply from './myApply.vue'
const list = ref([{ name: '我发布的', value: 0 }, { name: '我申请的', value: 1 }])

const switchTab = (item: any) => {
  currentTab.value = item.value
}
</script>

<template>
  <view class="express-my">
    <uv-sticky bgColor="#fff">
      <uv-tabs :current="currentTab" :list="list" @click="switchTab"></uv-tabs>
    </uv-sticky>
    <indexMe v-if="currentTab === 0"></indexMe>
    <myApply v-if="currentTab === 1" :type="0"></myApply>
  </view>
</template>

<style lang="scss"></style>